package com.nycreativity.elecreativity.entity.vo.activity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName
import com.nycreativity.elecreativity.entity.BaseEntity
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *  活动
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-10
 */
@ApiModel(value = "活动")
@TableName("activity")
class ActivityVO : BaseEntity(), Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    var id: Long? = null

    /**
     * 活动主题
     */
    @ApiModelProperty(value = "活动主题")
    var activityTheme: String? = null

    /**
     * 活动内容
     */
    @ApiModelProperty(value = "活动内容")
    var content: String? = null

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    override var creator: Long? = null

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    override var createTime: LocalDateTime? = null

    /**
     * 修改者
     */
    @ApiModelProperty(value = "修改者")
    override var modifier: Long? = null

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    override var modifyTime: LocalDateTime? = null


    override fun toString(): String {
        return "Activity{" +
                "id=" + id +
                ", activityTheme=" + activityTheme +
                ", content=" + content +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                "}"
    }
}
